﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="ObjList.aspx.cs" Inherits="CRS.Web.BaseData.ObjList" %>
<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI"
    TagPrefix="PaginationGrid" %>
<%@ Register Assembly="VitCode.Web.UI.ConditionSelector" Namespace="VitCode.Web.UI"
    TagPrefix="cc1" %>
<%@ Register Src="../UserControls/NavigateCtl.ascx" TagName="NavigateCtl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title id="pageTitle"></title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
    <link href="../ScriptFiles/CSS/style.css" type="text/asa" rel="Stylesheet" />
    <script src="../ScriptFiles/JS/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
function Check()
{
    var a = document.getElementsByTagName("input");
    for (var i = 0; i < a.length; i++) {
      if (a[i].type == "checkbox") {
          if (a[i].checked == true)
              return confirm(form1.hdnMsgDelete1.value);
      }
  }
    
    var memo = document.getElementById("pageMemo");
    alert(form1.hdnMsgDelete2.value);
    return false;
}

 
    </script>
</head>
<body>
   <form id="form1" runat="server">
    
    <table class="tableElse" width="100%" style="border: 1px solid #A8CFEB; margin-top: 2px;">
        <tr>
            <td>
                <uc1:NavigateCtl ID="NavigateCtl1" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblCondition" runat="server">查询条件：</asp:Label><asp:DropDownList ID="ddlCondition"
                    runat="server">
                </asp:DropDownList>
                <asp:TextBox ID="txtValue" runat="server" Width="136px"></asp:TextBox><asp:RadioButton
                    ID="rbtAmount" runat="server" Text="匹配" GroupName="1"></asp:RadioButton><asp:RadioButton
                        ID="rbtLike" runat="server" Text="模糊" GroupName="1" Checked="True"></asp:RadioButton>&nbsp;&nbsp;
                <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click"  class="btn_mouseout"
                    onmouseover="this.className= 'btn_mouseover' " onmouseout="this.className= 'btn_mouseout' "
                    onmousedown="this.className= 'btn_mousedown'" Text="查    询" />&nbsp;&nbsp;
                <asp:Button ID="btnRealDelete" runat="server" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover' "
                    onmouseout="this.className= 'btn_mouseout' " onmousedown="this.className= 'btn_mousedown'"
                    OnClick="btnRealDelete_Click" Text="彻底删除" Enabled="false" OnClientClick="return Check();" />&nbsp;&nbsp;
                <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" class="btn_mouseout"
                    onmouseover="this.className= 'btn_mouseover' " onmouseout="this.className= 'btn_mouseout' "
                    onmousedown="this.className= 'btn_mousedown'" Text="添    加" />&nbsp;&nbsp;
                     <cc1:ConditionSelector ID="ConditionSelector1" runat="server" OnSelectCondition="ConditionSelector1_SelectCondition"
                    FieldSourceGrid="pgList" ButtonClassName="btn_mouseout" 
                    onmousedownjs="this.className= 'btn_mousedown'" 
                    onmouseoutjs="this.className= 'btn_mouseout'" 
                    onmouseoverjs="this.className= 'btn_mouseover'" Text="综合查询" />
                <asp:Label ID="lblIsUseMemo" runat="server" Visible="False"></asp:Label>
                <asp:DropDownList ID="ddlIsUse" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlIsUse_SelectedIndexChanged">
                </asp:DropDownList>
                </td>
        </tr>
    </table>
 
                <PaginationGrid:PaginationGrid ID="pgList" Width="100%"  
        runat="server" DataKeyField="Id" OnOnGridItemSelect="pgList_OnGridItemSelect"
                    AutoSort="True" DataPaginationMode="Customize" 
        DataFileFormat="Excel">
                </PaginationGrid:PaginationGrid>
   <input id="hdnMsgDelete1" type="hidden" runat="server" value="确定删除吗？"/>
   <input id="hdnMsgDelete2" type="hidden" runat="server" value="请选择需要项"/>
    </form>
   
</body>
</html>
